package com.usefullc.crawler.param;
import com.usefullc.common.domain.BaseDomain;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.common.enums.ValidActionEnum;
import com.usefullc.system.validator.UsefulPropertyVerify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 爬虫输出模板参数实体
 * @author: 星空
 * @date: 2022-12-15
 */
@ApiModel
@Data
public class OutputTemplateParam extends BaseDomain {

//useful_auto_generate_section_start

    @UsefulPropertyVerify
    @ApiModelProperty(notes = "ID")
    private Long id;

    @UsefulPropertyVerify(minLen=2, required=true, maxLen=50)
    @ApiModelProperty(notes = "模板名称")
    private String name;

    @UsefulPropertyVerify(minLen=2,  maxLen=20)
    @ApiModelProperty(notes = "描述")
    private String description;

    @UsefulPropertyVerify(minLen=2, required=true, maxLen=500)
    @ApiModelProperty(notes = "链接")
    private String url;

    @UsefulPropertyVerify(minLen=2,  maxLen=100)
    @ApiModelProperty(notes = "用户(jdbc)")
    private String user;

    @UsefulPropertyVerify(minLen=2,  maxLen=50)
    @ApiModelProperty(notes = "密码(jdbc)")
    private String password;

    @UsefulPropertyVerify(minLen=2, required=true, maxLen=50)
    @ApiModelProperty(notes = "类型(http,jdbc)")
    private String type;

    @UsefulPropertyVerify(minLen=2,  maxLen=20)
    @ApiModelProperty(notes = "方法(http)")
    private String method;

    @UsefulPropertyVerify(minLen=2,  maxLen=3000)
    @ApiModelProperty(notes = "头部(http)")
    private String header;

    @UsefulPropertyVerify(minLen=2, maxLen=3000)
    @ApiModelProperty(notes = "数据包（http->body; jdbc->sql）")
    private String packet;


//useful_auto_generate_section_end

}
